<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>slot插槽</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <con>
            <template>
                <div>德玛西亚</div>
            </template>
        </con>
    </div>
    <script>
        const con = {
            data() {
                return {
                    say1: '你TM还是人吗',
                    say2: '我不是人'
                };
            },
            template: `
            <div>
                <div></div>
                <slot></slot>
                <div></div>
                <slot></slot>
                <div></div>
                <slot></slot>
            </div>
            `
        }
        new Vue({
            el: '#app',
            comments: {
                con
            }
        })
    </script>
</body>

</html>